package com.model.order.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.model.product.pojo.entity.Product;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("b_order")
public class Order implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("total_fee")
    private BigDecimal totalFee;
    @TableField("products")
    private String products;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private List<Product> productList;
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
